part of '../page.dart';

class _PremiumFeatureBlock extends StatelessWidget {
  const _PremiumFeatureBlock({
    required this.title,
    required this.subtitle,
    required this.icon,
  });

  final String title;
  final String subtitle;
  final Icon icon;

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        SizedBox(
          width: 32,
          child: Center(
            child: icon,
          ),
        ),
        const SizedBox(
          width: 16,
        ),
        Expanded(
          child: Column(
            mainAxisSize: MainAxisSize.min,
            crossAxisAlignment: CrossAxisAlignment.start,
            children: [
              Text(
                title,
                style: GoogleAppleStorePurchasePageTheme.of(context).textTheme.premiumFeatureTitle,
                textAlign: TextAlign.start,
              ),
              const SizedBox(
                height: 3,
              ),
              Text(
                subtitle,
                style: GoogleAppleStorePurchasePageTheme.of(context).textTheme.premiumFeatureSubtitle,
                textAlign: TextAlign.start,
              ),
            ],
          ),
        ),
      ],
    );
  }
}
